package org.poem.handler.impl;


import org.poem.CommonVO;
import org.poem.ProviderName;
import org.poem.config.error.ErrMsgConfiguration;
import org.poem.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 任务详情
 *
 * @author sangfor
 */
@Service
@FeignClient(name = ProviderName.DATA_CENTER, configuration = {ErrMsgConfiguration.class})
public interface CTaskDetailService {

    /**
     * 获取当前的主题下的可以依赖任务列表
     *
     * @param subjectId
     * @return
     */

    @GetMapping("/v1/taskDetail/getTaskDetailList/{subjectId}")
    public CommonResult<List<CommonVO>> getTaskDetailList(@PathVariable("subjectId") Long subjectId);
}
